// 新安全中心
bangkeapp.controller('newsafectrl',
	["$scope", "$state", "$ionicModal",
    function($scope, $state, $ionicModal) {
    	
    		$scope.toidcardcertification = function(){
	        $ionicModal.fromTemplateUrl('templates/center/newsafe/idcardcertification.html', {
	            scope: $scope
	        }).then(function(modal) {
	            $scope.realnamemodal = modal;
	            $scope.realnamemodal.show();
	        });
        }
    		$scope.gobacktocenter = function(){
	        $state.go("bangke.mycenter");
        }
    		$scope.gobacktosafe = function(){
	        $scope.realnamemodal.remove();
        }
    	}
    
]);